/*
package com.isoft.service.tableservice;

import com.isoft.dao.tabledao.DfmeBllsDao;
import com.isoft.entity.tableentity.dfme_blls.DfmeBllsMsg;
import com.isoft.utils.TimeFormatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.text.ParseException;

@Service
public class DfmeBllsService {
    @Autowired
    DfmeBllsDao dfmeBllsDao;
    public int insertMsg(DfmeBllsMsg dfmeBllsMsg) throws ParseException {
        Timestamp create_time = TimeFormatUtils.GetNowTime();
        Timestamp ddtm = TimeFormatUtils.stringToTimestamp(dfmeBllsMsg.getDfmeBllsMeta().getDdtm());
        dfmeBllsDao.insertMeta(create_time,ddtm,dfmeBllsMsg.getDfmeBllsMeta());

        int i =dfmeBllsMsg.getDflt().getBeltList().size();
        int j = 0;
        while (j<i){
            Timestamp estr = TimeFormatUtils.stringToTimestamp(dfmeBllsMsg.getDflt().getBeltList().get(j).getEstr());
            Timestamp eend = TimeFormatUtils.stringToTimestamp(dfmeBllsMsg.getDflt().getBeltList().get(j).getEend());
            Timestamp rend = TimeFormatUtils.stringToTimestamp(dfmeBllsMsg.getDflt().getBeltList().get(j).getRend());
            Timestamp rstr = TimeFormatUtils.stringToTimestamp(dfmeBllsMsg.getDflt().getBeltList().get(j).getRstr());
            dfmeBllsDao.insertBelt(dfmeBllsMsg.getDfmeBllsMeta().getSeqn(),create_time,dfmeBllsMsg.getDflt().getBeltList().get(j),
                    estr,eend,rstr,rend);
            j++;
        }
        return dfmeBllsDao.insertDflt(dfmeBllsMsg.getDfmeBllsMeta().getSeqn(),create_time,dfmeBllsMsg.getDflt());
    }
}
*/
